<?php
    require_once(APPPATH . '/controllers/test/Toast.php');

    class Plugin_test extends Toast{

        function __construct()
        {
            parent::__construct(__FILE__);
            $this->load->library('generator');
        }
        
        function test_generate_thumbnail()
        {
            $filepath = './';
            $filename = 'booking.gif';
            $width = 300;
            $height = 20;
            $filesave = "./tests/".$width."x".$height."/$filename";
            
            $this->generator->setImagesFolder($filepath);
            $this->generator->thumbnail($filename,$width,$height,$filesave);
        }
    }

?>